<style>
    div{
        display: inline-block;
    }
</style>

<div class="aright">
    <fieldset class="layui-elem-field layui-field-title" style="margin: 20px 30px 20px 20px;">
  <legend>题库管理</legend>
</fieldset>         
    <div class="arz cl"><a href="{:U('Unit/addChapter')}"><i class="layui-icon"></i>添加</a></div>
     <div class="arz cl"><a href="{:U('Unit/export')}"><i class="layui-icon"></i>导出选择题</a></div>
     <div class="arz cl"><a href="{:U('Unit/imgexport')}"><i class="layui-icon"></i>导出简答题</a></div>
    <form method="post" class="aform cl">
        <table width="100%">
           <tbody>
                <tr>
                    <th width="10%" align="center" >id</th>
                    <th width="40%" align="center">章节</th>        
                    <th width="10%" align="center">操作</th></tr>
                <volist name="chapterList" id="chapterList" empty="暂时没有数据" >
                    <tr>
                        <td style="padding-left: 20px;" align="center">{$chapterList.id}</td>
                        <td align="center">{$chapterList.chapter}</td>                    
                        <td align="center">
                            <a href="{:U('Unit/lists', array('chapterid'=>$chapterList['id']))}">选择题</a>  <a href="{:U('Unit/imglists', array('chapterid'=>$chapterList['id']))}">简答题</a>|<a href="{:U('Unit/editChapter', array('chapterid'=>$chapterList['id']))}">修改</a>|<a href="{:U('Unit/deleteChapter', array('chapterid' => $chapterList['id']))}" onclick="return confirm('您确定删除吗？');">删除</a>
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
              
    </form>
  
    <div class="pages">
     {$page}
     </div> 
</div>
<script type="text/javascript">

</script>